<template>
  <div>
    <div>child3组件 - {{ reverseMsg }} - {{ reverseMsg2 }} - {{ name }}</div>
  </div>
</template>

<script>
import { mapGetters, mapState } from "vuex";
export default {
  // computed: {
  //   reverseMsg() {
  //     // return this.$store.state.msg.split("").reverse().join("");

  //     return this.$store.getters.reverseMsg;
  //   },
  //   reverseMsg2() {
  //     return this.$store.getters.reverseMsg2;
  //   },
  // },

  computed: {
    ...mapGetters(["reverseMsg", "reverseMsg2"]),
    ...mapState(["name"]),
  },
};
</script>
